﻿<riaControlsBase:UserControlBase
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:riaControlsBase="clr-namespace:SBPweb.RIA.Client.Controls.Base;assembly=SBPweb.RIA.Client.Controls"
	mc:Ignorable="d"
	x:Class="SBPweb.PlAzureNet.Client.Library.Controls.ToolBarButton"
	d:DesignWidth="46" d:DesignHeight="46" Width="46" Height="46" Margin="3,0,3,0">
    
    <Grid x:Name="grd" Cursor="Hand" MouseEnter="rect_MouseEnter" MouseLeave="rect_MouseLeave" MouseLeftButtonUp="rect_MouseLeftButtonUp">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal">
                    <Storyboard>
                        <ColorAnimation x:Name="animNormal" Storyboard.TargetName="rect" Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" Duration="00:00:01.0" />
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="Hover">
                    <Storyboard>
                        <ColorAnimation x:Name="animHover" Storyboard.TargetName="rect" Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" Duration="00:00:00.1" />
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                    <Storyboard>
                        <ColorAnimation x:Name="animPressed" Storyboard.TargetName="rect" Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" Duration="00:00:00.1" />
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        
        <Rectangle Fill="#FFFFFFFF">
            <Rectangle.Effect>
                <DropShadowEffect Direction="-90" BlurRadius="7" ShadowDepth="1" Opacity="1" />
            </Rectangle.Effect>
        </Rectangle>
        <Rectangle x:Name="rect" Fill="#FFFFFFFF" />
        <ContentPresenter x:Name="cp" Margin="3" />
    </Grid>
    
</riaControlsBase:UserControlBase>